package com.flca.frw.util
{
	public class RandomDataUtils
	{
		private static var sNR : int = 0;

		public static function randomString() : String 
		{
			return  "test" + sNR++;
		}
		
		public static function randomDate() : Date
		{
			return new Date();
		}

		public static function randomNumber() : Number 
		{
			return Math.random();
		}

		public static function randomBoolean() : Boolean 
		{
			var n:Number = randomInt(0,1);
			return n > 0; 
		}


		public static function randomInt(aMin:int, aMax:int) : Number 
		{
			var dif:int = aMax - aMin;
			var result:int = Math.random() * dif;
			return result + aMin;
		}
	}
}